import java.util.Scanner;

public class ZY7 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入会员卡号：");
        int a = input.nextInt();
        if (a >= 1000 && a < 10000) {
            int b = a / 1000 % 10, c = a / 100 % 10, d = a / 10 % 10, e = a % 10, f = b + c + d + e;
            if (f > 24) {
                System.out.println("恭喜您，您中奖了，奖品是彩电一台！");
            } else {
                if (f > 20) {
                    System.out.println("恭喜您，您中奖了，奖品是电吹风一部！");
                } else {
                    if (f > 16) {
                        System.out.println("恭喜您，您中奖了，奖品是餐巾纸一包！");
                    } else {
                        System.out.println("下次继续努力！");
                    }
                }
            }
        } else {
            System.out.println("无效账号！");
        }
    }
}
